﻿namespace DotNetClient
{
    public enum RETURN_CODE : int
    {
        SUCCESS = 200,
        ERROR = 0
    }

    public enum LOGIN_CODE : int
    {
        SUCCESS = 200,
        FAIL_NOT_EXIST = 500,    // User does not exist
        FAIL_WRONG = 501,        // Wrong account or password
        FAIL_DUPLICATE = 502,    // Duplicate login
    }

    public enum MATCH_CODE : int
    {
        SUCCESS = 200,
        FAIL_GAME_NOT_EXIST = 500,    // 游戏模式不存在
        FAIL_USER_ERROR = 501,        // 用户不存在/离线
        FAIL_IS_MATCHING = 502,       // 已经在匹配中
        FAIL_ALREADY_IN_ROOM = 503,   // 已经在房间中
    }

    public  enum GAME_MODE : int
    {
        unknow = 0,     // 未知
        doudizhu = 1,   // 斗地主
        lushi = 2,      // 炉石
    }

    public enum PLAYER_STATE
    {
        UNKNOW = 0,     // 未知
        SITDOWN = 1,    // 坐下
        READY = 2,      // 准备中
        LOADING = 3,    // 场景资源加载中
        LOADED = 4,     // 场景资源已加载
        PLAYING = 5,    // 游戏中
        OFFLINE = 6,    // 离线
        SEEING = 7      // 观战
    }

    public enum PLAYER_ACTION
    {
        SITDOWN = 0,    // 坐下
        READY = 1,      // 准备
        START = 2,      // 开始
        SEEING = 3      // 旁观
    }

    public enum PLAYER_UPDATE
    {
        ADD = 0,            // 新增
        UPDATE_NAME = 1,    // 改名
        UPDATE_STATE = 2,   // 状态
        UPDATE_OFFINE = 3   // 离线
    }
}
